package com.ljs.myspringboot;


import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.scheduling.annotation.EnableScheduling;

@SpringBootApplication
//开启定时任务
@EnableScheduling
//开启缓存
@EnableCaching
@MapperScan("com.ljs.myspringboot.repository")/*扫描接口*/
@ServletComponentScan/*使用@ServletComponentScan注解后，Servlet、Filter、Listener可以直接通过@WebServlet、@WebFilter、@WebListener注解自动注册，无需其他代码。*/
public class MyspringbootApplication {
    public static void main(String[] args) {

        SpringApplication.run(MyspringbootApplication.class, args);
    }

}
